/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.risk.control.mapper;

import com.hopes.bizz.risk.common.bo.BaseCount;
import com.hopes.bizz.risk.control.entity.RiskMeasureTaskConfigEntity;
import com.hopes.bizz.risk.control.vo.RiskMeasureTaskConfigVO;
import com.hopes.boss.common.data.datascope.BossBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 隐患排查内容配置
 *
 * @author pig
 * @date 2023-07-20 08:56:11
 */
@Mapper
public interface RiskMeasureTaskConfigMapper extends BossBaseMapper<RiskMeasureTaskConfigEntity> {

    /**
     * 列表查询
     * @param entity 查询参数
     * @param orderColumn 排序
     * @return 查询结果
     */
    List<RiskMeasureTaskConfigVO> queryForList(RiskMeasureTaskConfigEntity entity, @Param("orderColumn") String orderColumn);

    /**
     * 批量保存
     * @param riskMeasureTaskConfigVOList  保存数据
     */
    void batchSaveByVO(List<RiskMeasureTaskConfigVO> riskMeasureTaskConfigVOList);

    BaseCount countByRiskUnitIdList(List<String> riskUnitIdList);
}
